-- GENERATED SPELL FOR [Sinok the Shadowrager] --


function spell0_26771(pUnit, Event) --@Blink Strike,n/a--
pUnit:FullCastSpellOnTarget(49961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26771', 648, 1)
end

function spell1_26771(pUnit, Event) --@Raging Shadows,Self--
pUnit:FullCastSpellOnTarget(51622,pUnit)
pUnit:RegisterEvent('Sorts_26771', 2000, 1)
end

function Sorts_26771(pUnit, Event)
local choix_sorts_26771 = math.random(0, 1)
if choix_sorts_26771 == 0 then
pUnit:RegisterEvent('spell0_26771', 1, 1)
end
if choix_sorts_26771 == 1 then
pUnit:RegisterEvent('spell1_26771', 1, 1)
end
end

function mob26771_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26771', math.random(1500, 3000), 1)
end

function mob26771_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26771_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26771_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26771, 1, 'mob26771_Action')
RegisterUnitEvent(26771, 2, 'mob26771_Leave')
RegisterUnitEvent(26771, 3, 'mob26771_Kill')
RegisterUnitEvent(26771, 4, 'mob26771_Die')
